package com.button.boot.druid.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.button.boot.druid.model.UserModel;
import com.button.boot.druid.service.UserService;

@RestController
public class UserController {

    @Autowired
    private UserService UserService;
    
    @GetMapping("/getUserList")
    public List<UserModel> testdb() {
        return UserService.getUserList();
    }
}
